package com.zby.lease.model.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.dromara.autotable.annotation.AutoTable;

@Data
@TableName(value = "browsing_history")
// 全参构造方法
// 用于创建一个包含所有字段的浏览历史记录对象
@AllArgsConstructor
// 无参构造方法
// 用于创建一个默认的浏览历史记录对象，通常用于ORM框架
@NoArgsConstructor
@AutoTable
public class BrowsingHistory extends BaseEntity{
    private static  final  long serialVersionUID = 1L;
    @Schema(description = "用户id")
    @TableField(value = "user_id")
    private Long userId;

    @Schema(description = "房间id")
    @TableField(value = "room_id")
    private Long roomId;
}
